IMotion.TestAxis method

Runs a command test to check the drive response to the commanded value, such as commanded position, velocity, or torque. This method can only be used with the modeDirectVel, modeDirectPos, and modeDirectTor modes.

Namespace: IntervalZero.KINGSTAR.Base.Api

Assembly: IntervalZero.KINGSTAR.Base.Api (in IntervalZero.KINGSTAR.Base.dll) Version: 4.4.0.0

Syntax

C#VB
KsCommandStatus TestAxis(
       int Index,
       double Amplitude
)
Function TestAxis(
       Index As Integer,
       Amplitude As Double
) As KsCommandStatus

Parameters

Index

Type: int

The index of an axis. Indexes are zero based. Aliases affect this parameter.

 

Amplitude

Type: double

The amplitude of the command in the test. The unit varies according to your control mode.

Control modeDefault unitUser unit (if the user changed the unit)
DirectPosCountUser unit
DirectVelCount per secondUser unit per second
DirectTorPercent (%)Percent (%)

Return value

Type: KsCommandStatus

Returns the KsCommandStatus class.

Remarks

This method is designed for the Test response of the Tune page of Device configuration of KINGSTAR Configuration Tool. It can be used only with direct control modes. Use it with IApi.Log to check whether the response of servo drives is correct.

Examples

C#
N/A

See also

IMotion Interface

IntervalZero.KINGSTAR.Base.Api Namespace